﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Mod.Talks
{
    using SharingCenter.Web.Classes.enums;
    using SharingCenter.Web.Classes;

    public partial class Talks : TalksPageBase
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            LinqDataSource1.Selecting += new EventHandler<LinqDataSourceSelectEventArgs>(LinqDataSource1_Selecting);
        }

        void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            e.WhereParameters["ContextType"] = EntityType.Default;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            BindReadHistory();
        }

        void BindReadHistory()
        {
            lvMyReadHistory.DataSource = Profile.Talks.ThreadReadHistory.ReadThreadLsit;
            lvMyReadHistory.DataBind();
        }
    }
}
